<?php
	$form = new TurmaForm();
?>
<h1>Visualizar Turma</h1>

<table class="form">
  <tbody>
  <tr><th colspan="2" class="title">Detalhes Turma</th></tr>
    <tr>
      <th><?php echo $form['id_turma']->renderLabel() ?>:</th>
      <td><?php echo $turma->getIdTurma() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['nm_turma']->renderLabel() ?>:</th>
      <td><?php echo $turma->getNmTurma() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['nu_turma']->renderLabel() ?>:</th>
      <td><?php echo $turma->getNuTurma() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['ds_turma']->renderLabel() ?>:</th>
      <td><?php echo $turma->getDsTurma() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['st_turma']->renderLabel() ?>:</th>
      <td><?php echo $turma->getStTurma() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['slug']->renderLabel() ?>:</th>
      <td><?php echo $turma->getSlug() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['created_at']->renderLabel() ?>:</th>
      <td><?php echo $turma->getCreatedAt() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['updated_at']->renderLabel() ?>:</th>
      <td><?php echo $turma->getUpdatedAt() ?></td>
    </tr>
  </tbody>
</table>

<hr />

<?php
	comandos_form(
		link_to(
			':: Listar ::',
			'turma/list',
			array('class' => 'btn btn-info')
		),
		link_to(
			':: Editar ::',
			'turma/edit?id_turma='.$turma->getIdTurma(),
			array('class' => 'btn btn-info')
		)
	);
?>